<script language="javascript">
<!--
$(document).ready(function(){
	$("#flogin").validate({
		rules: {		
			username: {
				required: true				
			},		
			password: {
				required: true	
			}
		},
		messages: {
			
		}
	});	
	$("#username").focus();
});
//-->
</script>
<form method="POST" id="flogin">
<?php if($this->error){?>	
	<table width="400">
		<tr><td class="error_box"><div><?=$this->error?></div></td></tr>
	</table>
<?php }?>
<table width="400" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
  <tr> 
    <td bgcolor="#FFFFFF">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">		
        <tr> 
          <td colspan="3" valign="top">
          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="menudottedline">
			  <tr>
				<td class="header4" align="left"><?php echo $this->translate('LOGIN');?></td>
			  </tr>
			</table>
			</td>
        </tr>
		<tr>
			<td colspan="3" height="10"></td>
		</tr>
        <tr>
          <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="4">
              <tr>
                  <td align="left"><strong><?php echo $this->translate('User name'); ?></strong><br>
                    <input type="text" id="username" name="username" class="inputbox" style="width:120px;"/>
                </td>
              </tr>
              <tr>
                  <td align="left"><strong><?php echo $this->translate('Password');?></strong><br>
                    <input name="password" type="password" class="inputbox" style="width:120px;"/></td>
              </tr>
			  <tr>
                  <td align="left"><input name="Submit" type="submit" class="button" value="<?php echo 'Submit';?>"></td>
              </tr>	
            </table></td>
		  <td>&nbsp;&nbsp;&nbsp;</td>
          <td valign="top" align="left" style="font-size:11px; padding-top:5px;">
		  	<?php echo $this->translate('Please input username and password that to login to system.'); ?>
		  </td>
        </tr>
        <tr>
          <td colspan="3">&nbsp;</td>
        </tr>
        <tr> 
          <td colspan="3" valign="top" align="center"><p>&copy; <?php echo $this->translate('2011 All rights reserved.');?></p></td>
        </tr>	
      </table></td>
  </tr> 
</table>
</form>